#include "DCELFace.h"
#include "DCELVertex.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif


//edited by lqw
DCELFace::DCELFace()
{

}

DCELFace::DCELFace(Site site) : site_(site), edge(0), auxData(0), globalIndex(-1)
{
}

DCELFace::~DCELFace()
{

}

int DCELFace::getEdgeCount() const
{
	int rval = 0;
	if (edge) {
		DCELHalfEdge* walkerE = edge->next;
		rval = 1;
		while (walkerE != edge) {
			rval++;
			walkerE = walkerE->next;
		}
	}
	return rval;
}
